package com.resturant.resturant.controller;

import com.resturant.resturant.entity.Student;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api")
public class FirstController {

    @GetMapping("/student/show")

    public Student show(){
//localhost:8080/api/student/show
        System.out.println("学生介绍");
        Student student = new Student();
        student.setSno("21001010533");
        student.setName("王舒湄");
        student.setSex("女");
        return student;
    }

}
